e and another one after the following { in the main_name
attribute) which end as multiple spaces in the output.
While you can fix the problem by removing the spaces a better solution
is to use the texdefinition environment to create your command, you can
even use blank lines to structure the argumen
t; rauricast...@gmail.com wrote:
>
>> Hi
>>
>> I found a solution to reach APA7 list and links.
>>
>> Using
>> $PATH/ConTeXtPATH/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi
>> in line 1306-1312, where \starttexd
> in line 1306-1312, where \starttexdefinition mutable protected
> btx:apa:doi \texdefinition {btx:format:goto} {
> url(https://doi.org/\btxflush{doi})
> } {
>\hyphenatedurl{https://\btxflush{doi}}
> }
> \stoptexdefinition
>
> Change:
> url(http://dx.
Sorry I missed to add doi.org at hyphenatedurl, now the whole block shows:
\starttexdefinition mutable protected btx:apa:doi
\texdefinition {btx:format:goto} {
url(https://doi.org/\btxflush{doi})
} {
\hyphenatedurl{https://doi.org/\btxflush{doi}}
}
\stoptexdefinition
Hi
I found a solution to reach APA7 list and links.
Using
$PATH/ConTeXtPATH/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi
in line 1306-1312, where
\starttexdefinition mutable protected btx:apa:doi
\texdefinition {btx:format:goto} {
url(https://doi.org/\btxflush{doi
eshort:author
\btxdoif{author} {
% If the useidem option is set and this author matches the previously
cited author, then just print "idem";
% otherwise, print the author/editor's last name
\doifelse{\btxparameter{useidem}} {\v!yes} {
\texdefinition{btx:sbl:doifsamefoundnameaut
If it helps with troubleshooting, I've also tried to do this with
\fastsetup instead of \texdefinition:
```
\expanded{\abbreviation[\currentbtxtag]{\fastsetup{btx:sbl:cite:shorthand}}{
\fastsetup{btx:sbl:cite:listsubcite}}}
```
This also doesn't work, but I at least get a "Missing co
up
\def\currentbtxcategory{\btxfield{category}}
\texdefinition{btx:sbl:inline:shorthand}
\endgroup
\removeunwantedspaces
\removepunctuation
\stopsetups
...
\expanded{\abbreviation[\currentbtxtag]{\textcite[alternative=shorthand,lefttext=,righttext=][\currentbtxtag]}{\textcite[alternative=l
A concise solution that I found would work was to define a "shorthand"
citation alternative and just print the shorthand with that:
```
% Shorthand citation setup
\startsetups btx:sbl:cite:shorthand
\begingroup
\def\currentbtxcategory{\btxfield{category}}
\tex
. So if there is a more concise
solution that applies expansion control to
\texdefinition{btx:sbl:inline:shorthand}, I'd love to know it!
Thanks!
Joey
On Wed, Oct 6, 2021 at 3:05 PM Joey McCollum
wrote:
> Okay, I had a follow-up question sooner than I thought! Enclosing the
> \abbrev
Okay, I had a follow-up question sooner than I thought! Enclosing the
\abbreviation command doesn't quite work when I want to typeset the
abbreviated form with a \texdefinition, as follows:
```
\texdefinition{btx:sbl:doifownfield} {shorthand} {
\expanded{\abbreviation[\currentbtxtag
i:
>>
>> \startsetups btx:cite:listelement
>> \fastsetup{\s!btx:\s!cite:concat}
>> \fastsetup{\s!btx:\s!cite:lefttext}
>> \ifx\currentbtxfirst\empty
>> \fastsetup{\s!btx:\s!cite:\s!empty}
>> \else
>>\texdefinition {\s!btx:\s!cite
etup{\s!btx:\s!cite:concat}
> \fastsetup{\s!btx:\s!cite:lefttext}
> \ifx\currentbtxfirst\empty
> \fastsetup{\s!btx:\s!cite:\s!empty}
> \else
>\texdefinition {\s!btx:\s!cite:inject} {
>\btxcitereference
>\currentbtxfirst
>
,
]
% field definitions
\starttexdefinition btx:iso690:author
\btxdoif {author} {
\btxflush{author}
\btxperiod
}
\stoptexdefinition
% book definition
\startsetups btx:iso690:list:book
\texdefinition{btx:iso690:author}
\removeunwantedspaces
\stopsetups
\starttexdefinition btx:iso690:author
\btxdoif {author} {
\btxflush{author}
\btxperiod
}
\stoptexdefinition
% book definition
\startsetups btx:iso690:list:book
\texdefinition{btx:iso690:author}
\removeunwantedspaces
\stopsetups
% publ-imp-iso690.lua
local specification
}
\ifx\currentbtxfirst\empty
\fastsetup{\s!btx:\s!cite:\s!empty}
\else
\texdefinition {\s!btx:\s!cite:inject} {
\btxcitereference
\currentbtxfirst
}
\fi
\fastsetup{\s!btx:\s!cite:righttext}
\stopsetups
\startsetups \s!btx:\s!cite:entry
\fa
][authorconversion=normalshort]
\startsetups btx:aps:cite:margin
\texdefinition{btx:aps:title}
\texdefinition{btx:aps:author}
\doiftextelse\currentbtxrighttext{
\currentbtxrighttext
} {
\removeunwantedspaces
\removepunctuation
}
this works and is perfect for my style, but I obtain
In the publ-imp-apa.mkvi (is it already VI?) I found the key line which I
would like to modify:
\startsetups btx:apa:list:book
\texdefinition{btx:apa:authoryear}
\texdefinition{btx:apa:title-if-not-placed}
...
\stopsetups
This, as I understand, determines the order in which the items
rong?
>
> Thanks in advance
> Tomás
>
> PS. Original question was posted here:
> https://tex.stackexchange.com/questions/480416/bibliography-what-is-the-correct-way-to-setup-and-invoke-the-category-electron
The APS style definitions currently expect:
"author", &
xdefinition
\startsetups btx:default:list:article
\texdefinition{btx:customauthor}
\texdefinition{btx:default:title}
\texdefinition{btx:default:journal}
\texdefinition{btx:default:year}
\removeunwantedspaces
\removepunctuation
\btxperiod
\stopsetups
\starttext
Citati
')
-- tex.sprint(text) -- text remains nill
\stopluacode
\stoptexdefinition
\startsetups btx:default:list:article
\texdefinition{btx:customauthor}
\texdefinition{btx:default:title}
\texdefinition{btx:default:journal}
\texdefinition{btx:default:year}
\removeunwantedspaces
ivePrefix}:
> }
> \btxflush{eprint}
> \btxstopstyleandcolor
> }
> \stoptexdefinition
>
> \startsetups btx:aps:list:article
> \texdefinition{btx:aps:author}
> \texdefinition{btx:aps:optional-title}
> \texdefinition{btx:ap
{archivePrefix}:
}
\btxflush{eprint}
\btxstopstyleandcolor
}
\stoptexdefinition
\startsetups btx:aps:list:article
\texdefinition{btx:aps:author}
\texdefinition{btx:aps:optional-title}
\texdefinition{btx:aps:doi-url}
{\texdefinition{btx:aps:journal-volume-year
On 8/25/2013 9:09 PM, Marco Patzer wrote:
On 2013–08–25 Wolfgang Schuster wrote:
The \starttexdefintion command looks for the “unexpanded” keyword
only when you apply also a argument but not when the arguments
are missing, i.e.
Thanks for the explanation. Is that a bug or expected behaviour?
On 2013–08–26 Hans Hagen wrote:
not a bug ... just not implemented (as it's pretty complex to do
that case efficiently at the tex end)
anyhow, as it seems to be needed, i redid the code and now we have:
[…]
so, three optional qualifiers (also in that order), so you'd better
wikify it
Hi,
the following example produces an “Undefined control sequence”
error. If \def is used instead of \starttexdefinition then there is
no error. Why?
\starttexcode
\installcommandhandler{foo}{foo}{foo}
\appendtoks
\setuevalue{start\currentfoo}{\foo@start[\currentfoo]}%%
Am 25.08.2013 um 19:40 schrieb Marco Patzer li...@homerow.info:
Hi,
the following example produces an “Undefined control sequence”
error. If \def is used instead of \starttexdefinition then there is
no error. Why?
The \starttexdefintion command looks for the “unexpanded” keyword
only when
On 2013–08–25 Wolfgang Schuster wrote:
The \starttexdefintion command looks for the “unexpanded” keyword
only when you apply also a argument but not when the arguments
are missing, i.e.
Thanks for the explanation. Is that a bug or expected behaviour?
I think it's odd that
Am 25.08.2013 um 21:09 schrieb Marco Patzer li...@homerow.info:
On 2013–08–25 Wolfgang Schuster wrote:
The \starttexdefintion command looks for the “unexpanded” keyword
only when you apply also a argument but not when the arguments
are missing, i.e.
Thanks for the explanation. Is that a
, \setvalue or texdefinition
are being used and \define for in-document markup, wherefore
numbered parameters are perfectly fine. The only thing that could be
improved is a definition which doesn't interfere with \asciimode,
but that's low priority and can easily be worked around.
Marco
with
\define. For modules most likely \def, \setvalue or texdefinition
are being used and \define for in-document markup, wherefore
numbered parameters are perfectly fine. The only thing that could be
improved is a definition which doesn't interfere with \asciimode,
but that's low priority and can
is grabbed. Seems like a bug or is this by design?
When you use the texdefinition environment to create a command
the end of line character which results normally in a space is ignored
sees “thenelseend” as a single string, in such a case you can add
a space and put a comment sign at the end of the line
with how the content of a
texdefinitions is grabbed. Seems like a bug or is this by design?
When you use the texdefinition environment to create a command
the end of line character which results normally in a space is ignored
sees “thenelseend” as a single string, in such a case you can add
a space
33 matches
Mail list logo